package edu.spsu.weather;

/**
 * I hold all the weather data from the Google Weather API
 * 
 * @author Jeff Lett
 */
import java.util.ArrayList;

public class WeatherData {
	private ArrayList<FutureWeatherForecast> futureWeatherForecasts;
	private CurrentWeatherForecast currentWeatherForecast;
	
	public WeatherData() {
		futureWeatherForecasts = new ArrayList<FutureWeatherForecast>(4);
		currentWeatherForecast = new CurrentWeatherForecast();
	}
	
	public void setFutureWeatherForecasts(ArrayList<FutureWeatherForecast> futureWeatherForecasts) {this.futureWeatherForecasts=futureWeatherForecasts;}
	public void setCurrentWeatherForecast(CurrentWeatherForecast currentWeatherForecast) {this.currentWeatherForecast=currentWeatherForecast;}
	
	public ArrayList<FutureWeatherForecast> getFutureWeatherForecasts() {return futureWeatherForecasts;}
	public CurrentWeatherForecast getCurrentWeatherForecast() {return currentWeatherForecast;}
	
	//needed for the google weather class tutorial.  
	public FutureWeatherForecast getLastFutureWeatherForecast() {return futureWeatherForecasts.get(futureWeatherForecasts.size()-1);}
}
